<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">模板标题</td><td id="yangname" class="tv"></td><td class="tt">模板说明</td><td id="yangshuo" class="tv"></td></tr>
                <tr><td class="tt">项目名称</td><td class="tv colorlan" id="enginname" colspan="3"></td></tr>

                <tr><td class="tt">合同名称</td><td id="name" class="tv"></td><td class="tt">合同状态</td><td id="state_name" class="tv"></td></tr>
                <tr><td class="tt">合同编号</td><td id="number" class="tv"></td><td class="tt">合同年份</td><td id="year" class="tv"></td></tr>
                <tr><td class="tt">合同类型</td><td id="caihetype_name" class="tv"></td><td class="tt">合同属性</td><td id="caiheshu" class="tv"></td></tr>
                <tr><td class="tt">供应方(乙方)</td><td id="gonger" class="tv"></td><td class="tt">采购方(甲方)</td><td id="caier_name" class="tv"></td></tr>
                <tr><td class="tt">乙方联系人</td><td id="gonguser" class="tv"></td><td class="tt">我方签订人</td><td id="myer" class="tv"></td></tr>
                <tr><td class="tt">乙方联系方式</td><td id="gongtel" class="tv"></td><td class="tt">签订日期</td><td id="qiandt" class="tv"></td></tr>
                <tr><td class="tt">合同金额(元)</td><td id="money" class="tv"></td><td class="tt">税率(%)</td><td id="rate" class="tv"></td></tr>
                <tr><td class="tt">合同开始日期</td><td id="startdt" class="tv"></td><td class="tt">合同结束日期</td><td id="enddt" class="tv"></td></tr>
                <tr><td class="tt">质保金比例(%)</td><td id="zhirate" class="tv"></td><td class="tt">质保金金额(元)</td><td id="zhifee" class="tv"></td></tr>

                <tr><td class="tt">结算方式</td><td class="tv" id="settle" colspan="3"></td></tr>
                <tr><td class="tt">支付条件</td><td class="tv" id="zhitiao" colspan="3"></td></tr>
                <tr><td class="tt">主要条款</td><td class="tv" id="clause" colspan="3"></td></tr>
                <tr><td class="tt">违约责任</td><td class="tv" id="viola" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

<!--        <div>--><?php //include "../public/upinfo_show.php";?><!--</div>-->

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>



        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_contract_yang_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;


                $("#yangname").text(data.yangname);
                $("#yangshuo").text(data.yangshuo);
                $("#state_name").text(data.state_name);
                $("#year").text(data.year);
                $("#caihetype_name").text(data.caihetype_name);
                $("#caiheshu").text(data.caiheshu);
                $("#caier_name").text(data.caier_name);
                $("#myer").text(data.myer);
                $("#qiandt").text(data.qiandt);
                $("#rate").text(data.rate);
                $("#startdt").text(data.startdt);
                $("#enddt").text(data.enddt);
                $("#zhirate").text(data.zhirate);
                $("#settle").text(data.settle);
                $("#zhitiao").text(data.zhitiao);
                $("#clause").text(data.clause);
                $("#viola").text(data.viola);


                // $(".pageshowtitle").text('采购合同模板');
                render_from();
            }
        });


        public_get_readsandlog('contract_yang', param_id);
        showpage_dropopt();
    });




</script>
</body>
</html>




